package com.zjitc.timer;

import java.time.LocalDateTime;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/2 14:43
 * @description:
 */
@Component
public class SpringTimer {

  @Scheduled(fixedRate = 1000)
  public void test() {
    System.out.println(LocalDateTime.now());
  }
}
